/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tpe.yana.testp1;

/**
 *
 * @author yana
 */
public class Controller {

    private Model model;
    private View view;
    private HanoiConstructor constructor;

    public Controller(Model model, View view, HanoiConstructor constructor) {
        this.model = model;
        this.view = view;
        this.constructor = constructor;
    }

    public void run() {
        int construct = constructor.construct(model, view);
        view.printResult(construct);
    }

}
